﻿using MN.Framework.Common;
using MN.Framework.MetaData;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TZ.Common
{
    [EntityHeader("زمان های ملاقات")]
    [SearchFields("MeetingDateTime")]
    [AssociatedWith(typeof(Person), "PersonRef", MN.Framework.MetaData.AssociationType.OneToMany)]
    [AssociatedWith(typeof(ReserveType), "ReserveType", MN.Framework.MetaData.AssociationType.OneToMany)]
    public partial class MedicalAppointment : BaseEntity
    {
        public override void GetColumns(List<ColumnInfo> columns)
        {
            columns.Add(new NumericColumnInfo("ID", "شناسه", true));
            columns.Add(new ReferenceColumnInfo("PersonRef", "بیمار"));
            columns.Add(new PersianDateColumnInfo("MeetingDatetime", "زمان ملافات"));
            columns.Add(new ReferenceColumnInfo("ReserveType", "نوع رزرو قرار"));
        }
    }
}
